<?php

namespace library\Core\Exception;

class DbException extends CAbstract {

    public $errorInfo;

    /**
     * Constructor.
     * @param string $message PDO error message
     * @param integer $code PDO error code
     * @param mixed $errorInfo PDO error info
     */
    public function __construct($message, $code = 1000, $errorInfo = null) {
        $this->errorInfo = $errorInfo;
        parent::__construct($message, $code);
    }

}
